/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}


    body {
    background-image: url('../image/星守.jpg');
    background-size: cover;
    filter: brightness(0.8); /* 降低亮度（0.1-1.0） */
    /* 其他可选滤镜 */
    /* contrast(1.2) 增加对比度 | blur(2px) 模糊效果 */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h2 {
    color: #1a73e8;
    text-align: center;
    margin: 20px 0;
}

/* 表格样式 */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-table th,
.custom-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.custom-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
}

.package-cell {
    white-space: nowrap;
}

/* 操作按钮样式 */
.action-buttons {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.user-recharge {
    background-color: #1a73e8;
    color: white;
}

.user-recharge:hover {
    background-color: #1557b0;
}

.change-package,
.bill-query {
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #333;
}

.change-package:hover,
.bill-query:hover {
    background-color: #f5f5f5;
}

.delete {
    background-color: #ff4444;
    color: white;
}

.delete:hover {
    background-color: #d93030;
}

.logout {
    background-color: #5f6368;
    color: white;
}

.logout:hover {
    background-color: #3c3f41;
}

/* 操作菜单样式 */
.menu {
    position: relative;
}

.operation-menu {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
    min-width: 200px;
    display: none;
}

.sub-menu.active {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    gap: 8px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.sub-menu a:hover {
    background-color: #f5f5f5;
}

.badge {
    font-size: 12px;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
}

.rechargeQQVip .badge {
    background-color: #1a73e8;
}

.sendSms .badge {
    background-color: #4CAF50;
}

.makeCall .badge {
    background-color: #ff9800;
}

.watchVideo .badge {
    background-color: #2196F3;
}

.sub-menu-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

/* 模态框样式 */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.custom-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation-name: modalOpen;
    animation-duration: 0.3s;
}

.custom-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.custom-close:hover {
    color: #1a73e8;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

select {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

button[type="submit"] {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #1557b0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .action-buttons {
        justify-content: start;
        flex-wrap: wrap;
    }

    .action-btn {
        margin-bottom: 10px;
        flex-grow: 1;
        justify-content: center;
        width: 100%;
        max-width: 200px;
    }
}

/* 动画 */
@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}